*Expanded Data (1998-2003) Robustness Analyses (Tables A6, A7, and A8)
import delimited "prelim_refs_jop_rep_appendix_data.csv", clear 

*Model 1A
regress referral c.net_eu_int_support i.cluster_var1, vce(cluster cluster_var)
*Model 2A
regress referral c.net_eu_int_support i.ecj_low_trust_expanded i.high_court c.eu_memb_diff  c.intra_eu_trade_share i.monist i.legal_origin c.gdp_growth i.founding_member c.gdp_share c.govt_lr i.cluster_var1, vce(cluster cluster_var)
*Model 3A
regress referral c.net_eu_int_support##i.ecj_low_trust_expanded i.cluster_var1, vce(cluster cluster_var)
*Model 4A
regress referral c.net_eu_int_support##i.ecj_low_trust_expanded i.high_court c.eu_memb_diff  c.intra_eu_trade_share i.monist i.legal_origin c.gdp_growth i.founding_member c.gdp_share c.govt_lr i.cluster_var1, vce(cluster cluster_var)
*Model 5A
regress referral c.net_eu_int_support##i.high_court i.cluster_var1, vce(cluster cluster_var)
*Model 6A
regress referral c.net_eu_int_support##i.high_court i.ecj_low_trust_expanded c.eu_memb_diff  c.intra_eu_trade_share i.monist i.legal_origin c.gdp_growth i.founding_member c.gdp_share c.govt_lr i.cluster_var1, vce(cluster cluster_var)

*Subset analysis for H2 (Table A8)
keep if ecj_low_trust_expanded==0
regress referral c.net_eu_int_support i.cluster_var1, vce(cluster cluster_var)
regress referral c.net_eu_int_support i.ecj_low_trust_expanded i.high_court c.eu_memb_diff  c.intra_eu_trade_share i.monist i.legal_origin c.gdp_growth i.founding_member c.gdp_share c.govt_lr i.cluster_var1, vce(cluster cluster_var)

import delimited "prelim_refs_jop_rep_appendix_data.csv", clear 

keep if ecj_low_trust_expanded==1
regress referral c.net_eu_int_support i.cluster_var1, vce(cluster cluster_var)
regress referral c.net_eu_int_support i.ecj_low_trust_expanded i.high_court c.eu_memb_diff  c.intra_eu_trade_share i.monist i.legal_origin c.gdp_growth i.founding_member c.gdp_share c.govt_lr i.cluster_var1, vce(cluster cluster_var)

*Alternate Cutoff (mean) for Trust in CJEU (Table A9) - uses primary dataset

import delimited "prelim_refs_jop_rep_data.csv", clear 

*MODEL 3: INTERACTION BETWEEN POLICY DIFF AND ECJ TRUST

regress referral c.net_eu_int_support##i.ecj_low_trust_robust i.cluster_var1, vce(cluster cluster_var)

*MODEL 4: INTERACTION BETWEEN POLICY DIFF AND ECJ TRUST WITH CONTROLS

regress referral c.net_eu_int_support##i.ecj_low_trust_robust i.high_court c.eu_memb_diff  c.intra_eu_trade_share i.monist i.legal_origin1 c.gdp_growth i.founding_member c.govt_lr c.gdp_share i.cluster_var1, vce(cluster cluster_var)
